<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "log_sync_order".
 *
 * @property int $id
 * @property string $source
 * @property string $type
 * @property string $increment_id
 * @property string $data
 * @property int $is_success
 * @property int $is_solved
 * @property int $solved_uid
 * @property int $created_at
 * @property int $updated_at
 */
class LogSyncOrder extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'log_sync_order';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['source', 'type', 'increment_id', 'data', 'solved_uid', 'created_at', 'updated_at'], 'required'],
            [['data'], 'string'],
            [['is_success', 'is_solved', 'solved_uid', 'created_at', 'updated_at'], 'integer'],
            [['source', 'type', 'increment_id'], 'string', 'max' => 32],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'source' => 'Source',
            'type' => 'Type',
            'increment_id' => 'Increment ID',
            'data' => 'Data',
            'is_success' => 'Is Success',
            'is_solved' => 'Is Solved',
            'solved_uid' => 'Solved Uid',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
